//
//  LAStraightPolyLine.h
//  OutdoorAssistantApplication
//
//  Created by 罗亮富 on 2018/6/26.
//  Copyright © 2018年 Lolaage. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LAPolyline.h"

//直线polyLine
@interface LATitledPolyline : LAPolyline<LAOverLayExt>

//如果线段已经绘制，设定下面的值需要调用-refreshPolyLine才可让设置生效
@property (nonatomic,copy) NSString *indicateString;
@property (nonatomic,copy) UIFont *font;
@property (nonatomic,copy) UIColor *textColor;//default is the same to lineColor
@property (nonatomic,copy) UIColor *textBackgroundColor; //default is nil

+(instancetype)straightLineWithStartPoint:(MKMapPoint)startPoint endPoint:(MKMapPoint)endPoint;
+(instancetype)straightLineWithStartCoordinate:(CLLocationCoordinate2D)startCord endCoordinate:(CLLocationCoordinate2D)endCord;


@end


@interface LAStraightPolyLineRenderer: MKPolylineRenderer

//需要调用-setNeedsDisplay方法来更新
@property (nonatomic,copy) UIFont *font;
@property (nonatomic,copy) NSString *text;
@property (nonatomic,copy) UIColor *textColor;//default is the same to strokeColor
@property (nonatomic,copy) UIColor *textBackgroundColor; //default is nil

@end
